<h1>订单 <%=  @order.order_num %> 的新项</h1>

<% form_for(@line) do |f| %>
  <%= f.error_messages %>
  <input type="hidden" id="line_order_num" name="line[order_num]" value="<%= @order.order_num %>" />
  <table>
    <tr align="center">    
      <td>产品</td>
      <td>数量</td>
      <td>价格</td>
      <td>单位成本</td>
      <td>相关要求</td>
    </tr>
    <tr>    
      <td><%=f.text_field :product, :size=>15 %></td>
      <td><%=f.text_field :qty, :size=>10 %></td>
      <td>$<%=f.text_field :price, :size=>10 %></td>
      <td>￥<%=f.text_field :unitcost, :size=>10 %></td>
      <td><%=f.text_field :req, :size=>30 %></td>
    </tr>
  </table>
  
  <p>
    <%= f.submit "保存" %>
  </p>
<% end %>

<td><a href="/store/order_lines/<%=@order.order_num%>">返回订单行</a></td>
